<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>TFCMS: FileUploadForm Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">TFCMS
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('class_file_upload_form.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">FileUploadForm Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="FileUploadForm" --><!-- doxytag: inherits="AbstractHtmlForm" --><div class="dynheader">
Inheritance diagram for FileUploadForm:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_file_upload_form.png" usemap="#FileUploadForm_map" alt=""/>
  <map id="FileUploadForm_map" name="FileUploadForm_map">
<area href="class_abstract_html_form.html" alt="AbstractHtmlForm" shape="rect" coords="0,0,112,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_file_upload_form.html#a6ac1042e42ebf2c7b33adfd8c56f7d96">__construct</a> ($name=&quot;file_upload_form&quot;, $method=&quot;post&quot;, $action=NULL, $dir=&quot;./uploads&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_file_upload_form.html#a5c553574d459166116488f02e86e2133">addUploadFields</a> ($amount=1)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_file_upload_form.html#a10d9f6315579e51033723fa8237c4dc9">getMaxFileSize</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_file_upload_form.html#ae578a4f595e50b29b2ad7bc134dff219">setMaxFileSize</a> ($sizeInBytes)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_file_upload_form.html#a0282b1fa703528a5a142479b4fd5cc5f">setMimeType</a> ($type)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_file_upload_form.html#a4c6d5bc16a2f3fdd5c3e06169f0a57fd">getUploadDir</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_file_upload_form.html#a0d09bc8c4a1445f9c2b1df053315e05d">setUploadDir</a> ($dir)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the path of the directory that stores the uploaded files.  <a href="#a0d09bc8c4a1445f9c2b1df053315e05d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_file_upload_form.html#a0683eb2bc0783fd8730e712998392887">renderHtmlForm</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_file_upload_form.html#a5bf9832f0bcf25a1bf5a8a044af0fd59">getFormFooter</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_file_upload_form.html#a5526cb94373c4e23441f0122a1d9db34">getFormHeader</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_file_upload_form.html#a597eefca57ef745962c2c14e3f9a35f5">isFormSubmitted</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if form has been submitted.  <a href="#a597eefca57ef745962c2c14e3f9a35f5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_file_upload_form.html#a16fd2e4964fca2fd2d6ca03cf3653bb8">formHandler</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience function called (or should be called) when form passes validation.  <a href="#a16fd2e4964fca2fd2d6ca03cf3653bb8"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="formtypes_8formgenerator_8php_source.html#l00563">563</a> of file <a class="el" href="formtypes_8formgenerator_8php_source.html">formtypes.formgenerator.php</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a6ac1042e42ebf2c7b33adfd8c56f7d96"></a><!-- doxytag: member="FileUploadForm::__construct" ref="a6ac1042e42ebf2c7b33adfd8c56f7d96" args="($name=&quot;file_upload_form&quot;, $method=&quot;post&quot;, $action=NULL, $dir=&quot;./uploads&quot;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_file_upload_form.html#a6ac1042e42ebf2c7b33adfd8c56f7d96">__construct</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>name</em> = <code>&quot;file_upload_form&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>method</em> = <code>&quot;post&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>action</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>dir</em> = <code>&quot;./uploads&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="formtypes_8formgenerator_8php_source.html#l00572">572</a> of file <a class="el" href="formtypes_8formgenerator_8php_source.html">formtypes.formgenerator.php</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a5c553574d459166116488f02e86e2133"></a><!-- doxytag: member="FileUploadForm::addUploadFields" ref="a5c553574d459166116488f02e86e2133" args="($amount=1)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_file_upload_form.html#a5c553574d459166116488f02e86e2133">addUploadFields</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>amount</em> = <code>1</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="formtypes_8formgenerator_8php_source.html#l00593">593</a> of file <a class="el" href="formtypes_8formgenerator_8php_source.html">formtypes.formgenerator.php</a>.</p>

</div>
</div>
<a class="anchor" id="a16fd2e4964fca2fd2d6ca03cf3653bb8"></a><!-- doxytag: member="FileUploadForm::formHandler" ref="a16fd2e4964fca2fd2d6ca03cf3653bb8" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_file_upload_form.html#a16fd2e4964fca2fd2d6ca03cf3653bb8">formHandler</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Convenience function called (or should be called) when form passes validation. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_abstract_html_form.html#afd78a8d9c8a6314882e898d6dc1727d9" title="Executes each field&#39;s verification methods.">validateFields()</a> </dd></dl>

<p>Reimplemented from <a class="el" href="class_abstract_html_form.html#a16fd2e4964fca2fd2d6ca03cf3653bb8">AbstractHtmlForm</a>.</p>

<p>Definition at line <a class="el" href="formtypes_8formgenerator_8php_source.html#l00614">614</a> of file <a class="el" href="formtypes_8formgenerator_8php_source.html">formtypes.formgenerator.php</a>.</p>

</div>
</div>
<a class="anchor" id="a5bf9832f0bcf25a1bf5a8a044af0fd59"></a><!-- doxytag: member="FileUploadForm::getFormFooter" ref="a5bf9832f0bcf25a1bf5a8a044af0fd59" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_file_upload_form.html#a5bf9832f0bcf25a1bf5a8a044af0fd59">getFormFooter</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented from <a class="el" href="class_abstract_html_form.html#a5bf9832f0bcf25a1bf5a8a044af0fd59">AbstractHtmlForm</a>.</p>

<p>Definition at line <a class="el" href="formtypes_8formgenerator_8php_source.html#l00603">603</a> of file <a class="el" href="formtypes_8formgenerator_8php_source.html">formtypes.formgenerator.php</a>.</p>

</div>
</div>
<a class="anchor" id="a5526cb94373c4e23441f0122a1d9db34"></a><!-- doxytag: member="FileUploadForm::getFormHeader" ref="a5526cb94373c4e23441f0122a1d9db34" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_file_upload_form.html#a5526cb94373c4e23441f0122a1d9db34">getFormHeader</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented from <a class="el" href="class_abstract_html_form.html#a5526cb94373c4e23441f0122a1d9db34">AbstractHtmlForm</a>.</p>

<p>Definition at line <a class="el" href="formtypes_8formgenerator_8php_source.html#l00606">606</a> of file <a class="el" href="formtypes_8formgenerator_8php_source.html">formtypes.formgenerator.php</a>.</p>

</div>
</div>
<a class="anchor" id="a10d9f6315579e51033723fa8237c4dc9"></a><!-- doxytag: member="FileUploadForm::getMaxFileSize" ref="a10d9f6315579e51033723fa8237c4dc9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_file_upload_form.html#a10d9f6315579e51033723fa8237c4dc9">getMaxFileSize</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="formtypes_8formgenerator_8php_source.html#l00675">675</a> of file <a class="el" href="formtypes_8formgenerator_8php_source.html">formtypes.formgenerator.php</a>.</p>

</div>
</div>
<a class="anchor" id="a4c6d5bc16a2f3fdd5c3e06169f0a57fd"></a><!-- doxytag: member="FileUploadForm::getUploadDir" ref="a4c6d5bc16a2f3fdd5c3e06169f0a57fd" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_file_upload_form.html#a4c6d5bc16a2f3fdd5c3e06169f0a57fd">getUploadDir</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="formtypes_8formgenerator_8php_source.html#l00691">691</a> of file <a class="el" href="formtypes_8formgenerator_8php_source.html">formtypes.formgenerator.php</a>.</p>

</div>
</div>
<a class="anchor" id="a597eefca57ef745962c2c14e3f9a35f5"></a><!-- doxytag: member="FileUploadForm::isFormSubmitted" ref="a597eefca57ef745962c2c14e3f9a35f5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_file_upload_form.html#a597eefca57ef745962c2c14e3f9a35f5">isFormSubmitted</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Check if form has been submitted. </p>
<dl class="note"><dt><b>Note:</b></dt><dd>Whether or not array_intersect() is slower than in_array() is beyond me, but in_array() yielded bad (false) results. </dd></dl>

<p>Reimplemented from <a class="el" href="class_abstract_html_form.html#a597eefca57ef745962c2c14e3f9a35f5">AbstractHtmlForm</a>.</p>

<p>Definition at line <a class="el" href="formtypes_8formgenerator_8php_source.html#l00609">609</a> of file <a class="el" href="formtypes_8formgenerator_8php_source.html">formtypes.formgenerator.php</a>.</p>

</div>
</div>
<a class="anchor" id="a0683eb2bc0783fd8730e712998392887"></a><!-- doxytag: member="FileUploadForm::renderHtmlForm" ref="a0683eb2bc0783fd8730e712998392887" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_file_upload_form.html#a0683eb2bc0783fd8730e712998392887">renderHtmlForm</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented from <a class="el" href="class_abstract_html_form.html#a0683eb2bc0783fd8730e712998392887">AbstractHtmlForm</a>.</p>

<p>Definition at line <a class="el" href="formtypes_8formgenerator_8php_source.html#l00705">705</a> of file <a class="el" href="formtypes_8formgenerator_8php_source.html">formtypes.formgenerator.php</a>.</p>

</div>
</div>
<a class="anchor" id="ae578a4f595e50b29b2ad7bc134dff219"></a><!-- doxytag: member="FileUploadForm::setMaxFileSize" ref="ae578a4f595e50b29b2ad7bc134dff219" args="($sizeInBytes)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_file_upload_form.html#ae578a4f595e50b29b2ad7bc134dff219">setMaxFileSize</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>sizeInBytes</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="formtypes_8formgenerator_8php_source.html#l00680">680</a> of file <a class="el" href="formtypes_8formgenerator_8php_source.html">formtypes.formgenerator.php</a>.</p>

</div>
</div>
<a class="anchor" id="a0282b1fa703528a5a142479b4fd5cc5f"></a><!-- doxytag: member="FileUploadForm::setMimeType" ref="a0282b1fa703528a5a142479b4fd5cc5f" args="($type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_file_upload_form.html#a0282b1fa703528a5a142479b4fd5cc5f">setMimeType</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="formtypes_8formgenerator_8php_source.html#l00686">686</a> of file <a class="el" href="formtypes_8formgenerator_8php_source.html">formtypes.formgenerator.php</a>.</p>

</div>
</div>
<a class="anchor" id="a0d09bc8c4a1445f9c2b1df053315e05d"></a><!-- doxytag: member="FileUploadForm::setUploadDir" ref="a0d09bc8c4a1445f9c2b1df053315e05d" args="($dir)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_file_upload_form.html#a0d09bc8c4a1445f9c2b1df053315e05d">setUploadDir</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>dir</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the path of the directory that stores the uploaded files. </p>

<p>Definition at line <a class="el" href="formtypes_8formgenerator_8php_source.html#l00698">698</a> of file <a class="el" href="formtypes_8formgenerator_8php_source.html">formtypes.formgenerator.php</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/home/reeko5k/www/tfcms/modules/<a class="el" href="formtypes_8formgenerator_8php_source.html">formtypes.formgenerator.php</a></li>
</ul>
</div><!-- contents -->
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="class_file_upload_form.html">FileUploadForm</a>      </li>

    <li class="footer">Generated on Mon Aug 6 2012 13:10:01 for TFCMS by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
